import request from '../utils/request'

// 获取验证码接口
export const getVeriApi=()=>{
  return request({
    url:"/VueHandler/AdminLoginAndRegHandler?action=verification"
  })
}
// 校验验证码接口
export const checkVeriApi=(veri:string)=>{
   return request({
    url:"/VueHandler/AdminLoginAndRegHandler?action=checkVerification",
    params:{
      veri:veri
    }
  })
}

// 登录接口
interface Ilogin{
  userName:string,
  password:string
}
export const loginApi=(data:Ilogin)=>{
  return request({
    url:"/VueHandler/AdminLoginAndRegHandler?action=login",
    method:"post",
    data
  })
}
